package com.ss.android.article.base.utils.searchtext;

import android.content.Context;

import com.bytedance.ttnet.utils.RetrofitUtils;

public class SearchTextHelper {
    public interface OnSearchTextRefreshListener {
        void onSearchTextRefresh(SearchTextData arg1);
    }

    public SearchTextApi mSearchTextApi;
    public Context mContext;
    private static volatile SearchTextHelper sInstance;

    private SearchTextHelper(Context context) {
        this.mContext = context.getApplicationContext();
        this.mSearchTextApi = RetrofitUtils.createService(RetrofitUtils.createRetrofit("http://ib.snssdk.com", null, null), SearchTextApi.class);
    }

    public static SearchTextHelper getInstance(Context context) {
        synchronized (SearchTextHelper.class) {
            sInstance = new SearchTextHelper(context);
        }
        return sInstance;
    }
}

